//ļ¼˳
#if !defined BRSeqList_H
#define BRSeqList_H
#include "SeqList.h"
#include "BorrowRecord.h"
template <typename T>
class BRSeqList:public SeqList<T>
{public:
	int SearchByNumAndDelFlag(string num,bool delFlag);
};

template <typename T>
int BRSeqList<T>::SearchByNumAndDelFlag(string num,bool delFlag)
{
	T * p=Begin();
	for(int i=0; i<Length(); i++)
        if(p[i].getBookNum() == num && !p[i].getDelFlag()) return i+1;        //˳
    return 0;                                                                 //ʧ
}
#endif
